/**
 * Created by meng on 2018/8/23.
 */
 !function(n){
  var  e=n.document,
          t=e.documentElement,
          i=750,
          d=i/100,
          o="orientationchange"in n?"orientationchange":"resize",
          a=function(){
              var n=t.getBoundingClientRect().width||320;n>750&&(n=750);
              console.log("输出获取的宽度:",n);
              t.style.fontSize=n/d+"px"
          };
  e.addEventListener&&(n.addEventListener(o,a,!1),e.addEventListener("DOMContentLoaded",a,!1))
}(window);
